<?php

namespace app\common\model;

use think\Model;

class Order extends Model
{
    protected $autoWriteTimestamp = true;
    protected $type = [
        'create_time'    =>  'integer',
        'update_time'     =>  'integer',
    ];

    public function orderReview(){
        return $this->hasOne('OrderReview');
    }

    public function userProfile(){
        return $this->belongsTo('UserProfile');
    }
}
